package org.example.lethear.dto.post;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.Size;
import java.util.List;

/**
 * 帖子更新请求DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PostUpdateRequest {
    
    @Size(min = 1, max = 100, message = "标题长度必须在1-100个字符之间")
    private String title;
    
    @Size(min = 1, max = 50000, message = "内容长度必须在1-50000个字符之间")
    private String content;
    
    @Size(max = 500, message = "摘要长度不能超过500个字符")
    private String summary;
    
    @Size(max = 500, message = "图片URL长度不能超过500个字符")
    private String imageUrl;
    
    @Size(max = 500, message = "视频URL长度不能超过500个字符")
    private String videoUrl;
    
    private Long categoryId;
    
    private List<String> tags;
    
    private Integer status;
    
    private Boolean isTop;
    
    private Boolean allowComment;
    
    private Integer priority;
} 